<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">
        <div><?php include "../public_flow/flow_show_info.php";?></div>
        <div class="tongbox tongbox5">
            <div class="tuo"><div class="tit">项目名称</div><div class="con" id="tong_enginname"></div></div>
            <div class="tuo"><div class="tit">保函类别</div><div class="con" id="tong_hantype_name"></div></div>
            <div class="tuo"><div class="tit">保函金额(元)</div><div class="con" id="tong_money"></div></div>
            <div class="tuo"><div class="tit">保证金截止时间</div><div class="con" id="tong_jiedt"></div></div>
            <div class="tuo"><div class="tit">申请人</div><div class="con" id="tong_flowuser"></div></div>
        </div>
        <div class="table-box tablenes">
            <div class="title">项目信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">项目名称</td><td class="tv colorlan" id="enginid_name" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div class="table-box tablenes">
            <div class="title">保函信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">保函类别</td><td class="tv" id="hantype_name" colspan="3"></td></tr>
                <tr><td class="tt">保函金额(元)</td><td class="tv" id="money"></td><td class="tt">保证金截止日期</td><td class="tv" id="jiedt"></td></tr>
                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div class="table-box tablenes">
            <div class="title">开具信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">开具状态</td><td class="tv" id="state_name" colspan="3"></td></tr>
                <tr><td class="tt">手续费</td><td id="shoufee" class="tv"></td><td class="tt">受益人</td><td id="shouer" class="tv"></td></tr>
                <tr><td class="tt">被担保人</td><td id="beidaner" class="tv"></td><td class="tt">担保人</td><td id="daner" class="tv"></td></tr>
                <tr><td class="tt">开具日期</td><td id="kaidt" class="tv"></td><td class="tt">有效期</td><td id="xiaodt" class="tv"></td></tr>
                </tbody>
            </table>
        </div>


        <div><?php include "../public/upinfo_show.php";?></div>
        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>
        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_bond_kai_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;
                var engininfo = res.data.engininfo;
                if(engininfo){
                    $("#flowdingname").text(engininfo.name);
                }

                if(engininfo){
                    $("#tong_enginname").text(engininfo.name);
                }
                $("#tong_hantype_name").text(data.hantype_name);
                $("#tong_money").text(parseFormatNum(data.money));
                $("#tong_jiedt").text(data.jiedt);
                $("#tong_flowuser").text(data.flowuser);






                if(engininfo){
                    $("#enginid_name").text(engininfo.name).click(function () {
                        openPage('../engin/show.php?id='+engininfo.id);
                    });
                }

                $("#money").text(showChineseNumber(data.money));
                $("#hantype_name").text(data.hantype_name);
                $("#jiedt").text(data.jiedt);
                $("#explain").text(data.explain);

                $("#state_name").text(data.state_name);
                $("#shoufee").text(data.shoufee);
                $("#shouer").text(data.shouer);
                $("#beidaner").text(data.daner);
                $("#daner").text(data.daner);
                $("#kaidt").text(data.kaidt);
                $("#xiaodt").text(data.xiaodt);


                public_flow_show_display(res.data.billinfo);
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('bond_kai', param_id);
    });



</script>
</body>
</html>




